Skip to content

fix(opencode): guard Go leaf seating credentials and attempts (#5611) - #7566

Merged
dezren39 merged 1 commit into
mainfrom
queue/12739-5611-go-seating
Nov 8, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/12739-5611-go-seating

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #5611

Implements the Go instance seating guard from task 12739 (resumed from the prior attempt's pushed branch at df9b15b; implementation was already complete and pushed, PR creation was blocked by the user-token secondary rate limit, so this PR is opened via the developing.today GitHub App route).

What it adds:

  • bin/check-opencode-go-seating.mjs — registration/seating check for opencode-go.* leaves: before seating, asserts a credential row exists under the exact instance integration_id with active=1 (not the bare opencode key), and asserts a successful route attempt for the leaf within a bounded window after seating; fails loudly otherwise.
  • bin/check-opencode-go-seating.test.mjs — regression tests covering the popesdrew failure shape (credential stored under the bare console-login key while pool config was correct), inactive exact-id rows, attempt-window edges, and pre-seat registration checks.
  • A NixOS seating-guard service + opencode-config-guard workflow wiring and ci-policy / fleet-schedule-registry docs.

Tests: node --test bin/check-opencode-go-seating.test.mjs on the laptop — 14/14 pass (verified 2026-11-08 by lane code-a).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 08:01
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8644921e-2e55-4bc8-abe6-3998ac1796e6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 force-pushed the queue/12739-5611-go-seating branch from df9b15b to 463df4d Compare November 8, 2026 08:44
@dezren39
dezren39 merged commit a80d206 into main Nov 8, 2026
3 of 7 checks passed
@dezren39
dezren39 deleted the queue/12739-5611-go-seating branch November 8, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go instance registration must assert a credential row under the exact instance id + a successful route_attempt after seating (popesdrew 0% root cause)

1 participant